package com.example.myys.network

import com.alibaba.fastjson2.JSONObject
import com.example.myys.data.entity.DataBean

//插件接口定义
interface PluginInterface {
    //推荐
    suspend fun getRecommend(baseUrl: String, type: String, rules: JSONObject): List<DataBean>

    //分类
    suspend fun getCategorize(
        baseUrl: String,
        categorizeName: String,
        type: String,
        page: Int,
        rules: JSONObject
    ): List<DataBean>

    //搜索
    suspend fun getSearchKeyWord(
        baseUrl: String,
        type: String,
        keyword: String,
        rules: JSONObject
    ): List<DataBean>

    //详情
    suspend fun getDetails(baseUrl: String, dataBean: DataBean, rules: JSONObject): DataBean

    //内容
    suspend fun getContent(baseUrl: String, url: String, rules: JSONObject): String
}